﻿#include "QWinMainForm.h"
#include "ui_QWinMainForm.h"

QWinMainForm::QWinMainForm(QWidget *parent) :
        QMainWindow(parent), ui(new Ui::QWinMainForm)
{
    ui->setupUi(this);

    Pushbutton = new QPushButton(this);
    Pushbutton->move(25, 25);
    Pushbutton->resize(256, 45);
    Pushbutton->setText(tr("Frame"));
    connect(Pushbutton, SIGNAL(clicked(bool)), this, SLOT(Onclicked(bool)));
}

QWinMainForm::~QWinMainForm()
{
    delete ui;
}

void QWinMainForm::Onclicked(bool checked)
{
    //MainForm = new QMainForm(this);
    //MainForm->show();
    MyWindowsTest*  WindowsTest = new MyWindowsTest();
    //WindowsTest->resize(1024, 720);
    WindowsTest->show();
}
